<?php
namespace  app\common\model;

use think\Db;
use think\Model;

class ProjectContract extends BaseModel
{
    public function  project(){
        return $this->hasOne('Project','id','project_id')->field('id,title,price');
    }


    public function  user(){
        return $this->hasOne('Admin','id','uid')->field('id,username,nickname');
    }
}